<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------

namespace app\user_center\validate\admin;

use think\Validate;

/**
 * 艺人 验证器
 * @package app\admin\validate
 * @author jason wang <120907037@qq.com>
 */
class Artist extends Validate
{
    protected $rule = [
		'attestation_id'     =>  'require|number|gt:0', //
        'artist_name'        =>  'chsDash|require|length:1,100', //
        'mobile'      		 =>  'require|mobile',  //
    ];

    protected $message  =   [
        'artist_name'   	=> '艺人名称错误',
		'mobile'      		=> '手机格式错误',
		'attestation_id'    => '所属机构必填',
    ];

    //验证场景
    protected $scene = [
        					'add'    =>  [//添加艺人
														'artist_name',
														'mobile',
														'attestation_id'
													 ],
               			];
}
